package com.huijinhui.wlmtsys.pojo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * APP用户信息表
 * </p>
 *
 * @author itheima
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User  implements Serializable {



    @Schema(title = "userId",description = "主键id",defaultValue = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(title = "username",description = "用户名",required = false)
    private String username;

    @Schema(title = "image",description = "微信用户头像")
    private String image;

    /**
     * 0 男
     1 女
     2 未知
     */
    @Schema(title = "sex",description = "性别",required = false)
    @TableField("sex")
    private Boolean sex;

    @Schema(title = "phone",description = "手机号",required = false)
    @TableField("phone")
    private String phone;

    @Schema(title = "password",description = "密码",required = false)
    @TableField("password")
    private String password;

    @Schema(title = "openid",description = "openid",required = false)
    @TableField("openid")
    private String openid;

    @Schema(title = "createTime",description = "创建时间",required = false)
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(title = "updateTime",description = "更新时间",required = false)
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 密码、通信等加密盐
     */

    @TableField("salt")
    private String salt;



}